package com.daisuxia.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daisuxia.web.dao.*;
import com.daisuxia.web.pojo.*;

import java.util.List;
import java.util.Map;


@Service
public  class RenewalRecordService implements IRenewalRecordService {
	
	@Autowired
	private IRenewalRecordDao renewalRecordDao;

	@Override
	public RenewalRecord selectByPrimaryKey(Integer id) {
		return renewalRecordDao.selectByPrimaryKey(id);
	}

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		 return renewalRecordDao.deleteByPrimaryKey(id) > 0;
	}

	@Override
	public boolean insert(RenewalRecord repayment) {
		return renewalRecordDao.insert(repayment) > 0;
	}

	@Override
	public boolean insertSelective(RenewalRecord repayment) {
		return renewalRecordDao.insertSelective(repayment) > 0;
	}

	@Override
	public boolean updateByPrimaryKey(RenewalRecord repayment) {
		return renewalRecordDao.updateByPrimaryKey(repayment) > 0;
	}

	@Override
	public boolean updateByPrimaryKeySelective(RenewalRecord repayment) {
		return renewalRecordDao.updateByPrimaryKeySelective(repayment) > 0;
	}


	@Override
	public List<RenewalRecord> findParams(Map<String, Object> params) {
		return renewalRecordDao.findParams(params);
	}
}
